<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>

<div class="container breadcrumbs">
    <a href="<?php echo $this->url('shop'); ?>"><?php echo $this->translate('首页'); ?></a>
    <span class="sep">/</span><span><?php echo $this->translate('售后服务'); ?></span>
</div>
<div class="container">
    <div class="uc-full-box">
        <div class="row">
            <div class="span4">
                <?php echo $this->partial('shop/partial/home/leftMenu'); ?>
            </div>
            <div class="span16">
                <div class="xm-line-box uc-box">
                    <h3 class="right-more-title">
                        <?php echo $this->translate('售后服务'); ?>
                    </h3>
                    <div class="box-hd-more">
                        <div class="span16">
                            <div class="span14 pull-left left-menu-more">
                                <div class="uc-order-list-type">
                                    <a href="javascript:;" class="current"><?php echo $this->translate('售后服务'); ?></a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="box-bd">
                        <?php if ($this->returnInfo) { ?>
                        <div class="uc-order-list-box">
                            <ul class="uc-order-detail-list">
                                <li class="uc-order-detail-item">
                                    <table class="order-detail-table">
                                        <tbody>
                                        <tr>
                                            <td class="column-detail column-l">
                                                <ul class="order-goods-list">
                                                    <li class="first">
                                                        <a href="<?php echo $this->url('shop-goods', ['id' => $this->orderGoods->getGoodsId()]); ?>" target="_blank">
                                                            <img src="<?php echo $this->shopHelper()->baseGoodsImagePath($this->orderGoods->getGoodsImage()); ?>" class="goods-thumb">
                                                        </a>
                                                        <a class="goods-name" href="<?php echo $this->url('shop-goods', ['id' => $this->orderGoods->getGoodsId()]); ?>" target="_blank"><?php echo $this->escapeHtml($this->orderGoods->getGoodsName()); ?></a>
                                                        <span class="goods-price"><?php echo $this->shopHelper()->orderCurrency($this->orderGoods->getGoodsPrice(), $this->orderInfo->getCurrencySymbol()); ?> x <?php echo $this->orderGoods->getBuyNum(); ?> = <strong><?php echo $this->shopHelper()->orderCurrency($this->orderGoods->getGoodsAmount(), $this->orderInfo->getCurrencySymbol()); ?></strong></span>
                                                        <span style="display: block;"><?php echo $this->escapeHtml($this->orderGoods->getInSpecGoodsStr()); ?></span>
                                                    </li>
                                                </ul>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </li>
                            </ul>
                        </div>
                        <div style="padding-left: 30px;">
                            <dt>
                                <dl>
                                    <dd><?php echo $this->translate('订单编号'); ?>：<?php echo $this->returnInfo->getOrderSn(); ?></dd>
                                    <?php if ($this->returnInfo->getReturnType() != 3) { ?>
                                        <dd><?php echo $this->translate('申请退款金额'); ?>：<?php echo $this->orderInfo->getCurrencySymbol() . $this->returnInfo->getReturnAmount(); ?></dd>
                                    <?php } ?>
                                    <dd><?php echo $this->translate('申请时间'); ?>：<?php echo $this->shopDateFormat()->shopOrderGoodsReturnTime($this->returnInfo->getAddTime()); ?></dd>
                                    <dd><?php echo $this->translate('售后类型'); ?>：<?php echo $this->salesHelper()->getOrderGoodsReturnType($this->returnInfo->getReturnType()); ?></dd>
                                    <dd><?php echo $this->translate('申请售后原因'); ?>：<?php echo $this->escapeHtml($this->returnInfo->getReturnReason()); ?></dd>
                                    <?php if ($this->returnInfo->getReturnType() != 3) { ?>
                                        <dd><?php echo $this->translate('退款方式'); ?>：<?php echo $this->salesHelper()->getOrderGoodsReturnPayType($this->returnInfo->getRefundPayType()); ?></dd>
                                        <?php if ($this->returnInfo->getRefundPayType() == 'otherPay') { ?>
                                            <dd><?php echo $this->translate('支付名称(开户行)'); ?>：<?php echo $this->escapeHtml($this->returnInfo->getRefundPayName()); ?></dd>
                                            <dd><?php echo $this->translate('姓名'); ?>：<?php echo $this->escapeHtml($this->returnInfo->getRefundUser()); ?></dd>
                                            <dd><?php echo $this->translate('收款账号(卡号)'); ?>：<?php echo $this->escapeHtml($this->returnInfo->getRefundAccount()); ?></dd>
                                        <?php } ?>
                                    <?php } ?>
                                    <dd><?php echo $this->translate('申请说明'); ?>：<?php echo nl2br($this->escapeHtml($this->returnInfo->getReturnInfo())); ?></dd>
                                    <dd><?php echo $this->translate('审核状态'); ?>：<?php echo $this->salesHelper()->getOrderGoodsReturnState($this->returnInfo->getReturnState()); ?></dd>
                                    <?php if (!empty($this->returnInfo->getReviewInfo())) { ?>
                                        <dd><?php echo $this->translate('审核说明'); ?>：<?php echo nl2br($this->escapeHtml($this->returnInfo->getReviewInfo())); ?></dd>
                                    <?php } ?>
                                </dl>
                            </dt>
                        </div>
                        <?php } else { ?>
                            <div class="uc-order-list-box">
                                <ul class="uc-order-detail-list">
                                    <li class="uc-order-detail-item">
                                        <table class="order-detail-table">
                                            <tbody>
                                            <tr>
                                                <td class="column-detail column-l">
                                                    <ul class="order-goods-list">
                                                        <li class="first">
                                                            <a href="<?php echo $this->url('shop-goods', ['id' => $this->orderGoods->getGoodsId()]); ?>" target="_blank">
                                                                <img src="<?php echo $this->shopHelper()->baseGoodsImagePath($this->orderGoods->getGoodsImage()); ?>" class="goods-thumb">
                                                            </a>
                                                            <a class="goods-name" href="<?php echo $this->url('shop-goods', ['id' => $this->orderGoods->getGoodsId()]); ?>" target="_blank"><?php echo $this->escapeHtml($this->orderGoods->getGoodsName()); ?></a>
                                                            <span class="goods-price"><?php echo $this->shopHelper()->orderCurrency($this->orderGoods->getGoodsPrice(), $this->orderInfo->getCurrencySymbol()); ?> x <?php echo $this->orderGoods->getBuyNum(); ?> = <strong><?php echo $this->shopHelper()->orderCurrency($this->orderGoods->getGoodsAmount(), $this->orderInfo->getCurrencySymbol()); ?></strong></span>
                                                            <span style="display: block;"><?php echo $this->escapeHtml($this->orderGoods->getInSpecGoodsStr()); ?></span>
                                                        </li>
                                                    </ul>
                                                </td>
                                                <td class="column-action">
                                                    <a href="<?php echo $this->url('shop-service', ['action' => 'returnMoney', 'id' => $this->orderGoods->getOrderGoodsId()]); ?>" class="btn btn-small btn-primary btn-a-url" style="color: #fff;"><?php echo $this->translate('我要退款(无需退货)'); ?></a>
                                                    <a href="<?php echo $this->url('shop-service', ['action' => 'returnGoods', 'id' => $this->orderGoods->getOrderGoodsId()]); ?>" class="btn btn-small btn-primary btn-a-url" style="color: #fff;margin-top: 5px;"><?php echo $this->translate('我要退货退款'); ?></a>
                                                    <a href="<?php echo $this->url('shop-service', ['action' => 'changeGoods', 'id' => $this->orderGoods->getOrderGoodsId()]); ?>" class="btn btn-small btn-primary btn-a-url" style="color: #fff;margin-top: 5px;"><?php echo $this->translate('我要换货'); ?></a>
                                                </td>
                                            </tr>
                                            </tbody>
                                        </table>
                                    </li>
                                </ul>
                            </div>
                        <?php } ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>